//
//  InterfaceNetManager.h
//  JiuLe
//
//  Created by xcq on 15/10/31.
//  Copyright © 2015年 Fine. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "NetManager.h"
#import "NetManagerApi.h"
#import "Costants.h"
typedef void (^interfaceManagerBlock)(BOOL isSucceed, NSString *message, id data ,NSError *error);
typedef BOOL (^interfaceManagerBlockReturnBOl)(BOOL isSucceed, NSString *message, id data ,NSError *error);

@interface InterfaceNetManager : NSObject

/**
 *  @brief  登陆
 *
 *  @param userName   用户名
 *  @param pwd        密码
 *  @param completion 回调函数
 */
+ (void)RequestLogin:(NSString *)userName
            PassWord:(NSString *)pwd
          completion:(interfaceManagerBlock )completion;
/**
 *  @brief  请求首页数据
 */
+ (void)RequestHomePageDataCompletion:(interfaceManagerBlock)completion;

/**
 *  @brief  用户新消息下载
 *
 *  @param completion 回调
 */
+ (void)RequestUserNewMessage:(interfaceManagerBlock)completion DateStr:(NSString *)date;

/**
 *  @brief  设备激活
 *
 *  @param completion  回调
 */
+ (void)RequestActivateDevice:(interfaceManagerBlock)completion
                 andParameter:(NSDictionary *)parameter;

/**
 * @brief   设备信息
 * 
 * @param   completion 回调
 */
+ (void)RequestDeviceInfo:(interfaceManagerBlock)completion;

/**
 * @brief   修改消息为已读
 *
 * @param   completion 回调
 */
+ (void)MessageReadStatusChange:(NSString *)messageId completion:(interfaceManagerBlock)completion;

/**
 * @brief   获取闹钟设置
 *
 * @param   completion 回调
 */
+ (void)RequestClockSettingCompletion:(interfaceManagerBlock)completion;
/**
 * @brief   获取电话设置
 *
 * @param   completion 回调
 */
+ (void)RequestPhoneSettingCompletion:(interfaceManagerBlock)completion;

/**
 * @brief   获取健康设置
 *
 * @param   completion 回调
 */
+ (void)RequestHealthSettingCompletion:(interfaceManagerBlock)completion;

/**
 *  @brief  设置闹钟
 *
 *  @param completion  回调
 */
+ (void)SetClockSetting:(interfaceManagerBlock)completion
                 andParameter:(NSDictionary *)parameter;

/**
 *  @brief  设置健康
 *
 *  @param completion  回调
 */
+ (void)SetHealthSetting:(interfaceManagerBlock)completion
           andParameter:(NSDictionary *)parameter;


/**
 *  @brief  设置电话
 *
 *  @param completion  回调
 */
+ (void)SetPhoneSetting:(interfaceManagerBlock)completion
           andParameter:(NSDictionary *)parameter;
@end
